<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:t="http://myfaces.apache.org/tomahawk">
<head>
<title>#{msg.system_title}</title>
<p:resources />
<link rel="stylesheet" type="text/css"
	href="#{facesContext.externalContext.request.contextPath}/xhtml/css/smoothness/skin.css" />
<link rel="stylesheet" type="text/css"
	href="#{facesContext.externalContext.request.contextPath}/xhtml/css/layout.css" />
</head>
<body>

<table width="100%" align="center">
	<tr>
		<td align="center" height="80px;"><h:outputText
			style="font-size: 26px;" value="#{msg.system_title}" /></td>
	</tr>
	<tr>
		<td align="center">
		<h:form prependId="false">
			<t:saveState value="#{recommenderBean}" />
			<p:messages id="messages" showDetail="true" />
			<p:outputPanel style="width: 99%; text-align: left;">
				<h:panelGrid columns="4">
					<h:outputLabel value="#{msg.label_user_name}:" />
					<h:inputText id="userEmail" maxlength="100" size="40"
						value="#{recommenderBean.userName}" />
					<p:commandButton id="btnSave" value="#{msg.label_save}"
						ajax="false" action="#{recommenderBean.save}" />
					<p:commandButton id="btnBack" value="#{msg.label_back}"
						ajax="false" action="#{recommenderBean.backToUsersList}" />
				</h:panelGrid>
			</p:outputPanel>
			<br />
			<p:tabView>
				<p:tab id="movies" title="#{msg.label_preferences_movies_context}">
					<ui:include src="/xhtml/preference/moviesPreferences.xhtml" />
				</p:tab>

				<p:tab id="singers" title="#{msg.label_preferences_singers_context}">
					<ui:include src="/xhtml/preference/singersPreferences.xhtml" />
				</p:tab>

				<p:tab id="books" title="#{msg.label_preferences_books_context}">
					<ui:include src="/xhtml/preference/booksPreferences.xhtml" />
				</p:tab>
			</p:tabView>
		</h:form></td>
	</tr>
	<tr>
		<td align="center"><h:outputFormat value="#{msg.label_footer}"
			style="font-size: 11px;">
			<f:param value="#{msg.system_title}" />
			<f:param value="#{msg.system_version}" />
			<f:param value="#{msg.system_author}" />
		</h:outputFormat></td>
	</tr>
</table>

</body>
</html>